//
//  Tree.m
//  OcDay1Homework
//
//  Created by dllo on 16/5/21.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "Tree.h"

@implementation Tree
-(void)setName:(NSString *)name{
    _name = name;
}
-(NSString *)name{
    return _name;
}
-(void)setArea:(NSString *)area{
    _area = area;
}
-(NSString *)area{
    return _area;
}
-(void)setHeight:(NSInteger)height{
    _height = height;
}
-(NSInteger)height{
    return _height;
}
-(void)myPrint{
    NSLog(@"%@ %@ %ld",_name ,_area,_height);
}
-(instancetype)initWithName:(NSString *)name withArea:(NSString *)area withHeight:(NSInteger)height{
    self = [super init];
    if(self){
        _name = name;
        _area = area;
        _height = height;
    }
    return self;
}
@end
